set(LIB_SRC
    base64.c
    des.c
    security_common.c
    test.c
)

set(INCLUDE_DIR
    ${CMAKE_CURRENT_SOURCE_DIR}/
    ${CMAKE_CURRENT_SOURCE_DIR}/../include
    ${CMAKE_CURRENT_SOURCE_DIR}/../third/mbedtls/include
)

set(DEP_LIBS_DIR
    ${CMAKE_CURRENT_SOURCE_DIR}/../build/third/mbedlts/library
)

set(DEP_LIBS
    mbedtls
)

link_directories(${DEP_LIBS_DIR})
include_directories(${INCLUDE_DIR})

add_library(${SDK_NAME} SHARED ${LIB_SRC})
target_link_libraries(${SDK_NAME} PRIVATE ${DEP_LIBS} -Wl,--exclude-libs,ALL)